﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RecepcionDocListForm.aspx.cs"
 Inherits="UILGestion.ObraAdmin.RecepcionDoc.RecepcionDocListForm" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<%@ Register src="~/Control/menuObraCtrl.ascx" tagname="menuObraCtrl" tagprefix="uc1" %>

<%@ Register src="RecepcionDocListGrid.ascx" tagname="RecepcionDocListGrid" tagprefix="uc2" %>

<%@ Register assembly="WebLib" namespace="WebLib" tagprefix="lib" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <link href="../../resources/css/main.css" rel="stylesheet" type="text/css" />
   
  <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/fonts.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/global.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/theme.css" />
 
</head>
<body>
    <form id="form1" runat="server">
     
    <uc1:menuObraCtrl ID="menuObraCtrl1" runat="server" />
    
    <asp:ToolkitScriptManager ID="ToolkitScriptManager2" runat="server" EnableScriptGlobalization="true"  EnablePartialRendering="true">
    </asp:ToolkitScriptManager>
    <asp:Panel ID="pnlMain" runat="server"
  CssClass="Heading secTitle AreaHeading ms-crm-List-Header">
 
    <asp:Label ID="Label1" runat="server" Text="CENTRO COSTO - LISTA DE DOCUMENTOS" 
             style="font-size: large; color: #960818"></asp:Label>
 </asp:Panel>


    <table  width="100%" style="background-color:White">
          <tr>
              <td Width="800px">
              <asp:Panel ID="PanelwButtom" runat="server"   BackColor="white"  GroupingText="Filtros de busqueda">

              <table cellspacing="1" >
          <tr>
          <td align="right" class="style1" width="100px">
                 Tipo Doc:</td>
                <td class="style1" colspan="5" width="650px"> 
                    <asp:DropDownList ID="tipoDocumentoDDL" runat="server" Width="250px"
                        DataTextField="descripcion"  AutoPostBack="true"
                        DataValueField="idInternal" >
                    </asp:DropDownList>
                </td>
             <td>&nbsp;</td>
              <td>
                  &nbsp;</td>
 </tr>
                  <tr>
                      <td align="right" class="style1" width="100px">
                          Nro. Doc:</td>
                      <td class="style1" colspan="5" width="650px">
                          <lib:Input ID="codigoTXT" runat="server" Width="100px"></lib:Input>
                      </td>
                      <td>
                          &nbsp;</td>
                      <td>
                          &nbsp;</td>
                  </tr>
                  <tr>
                      <td align="right" class="style1" width="100px">
                          Proveedor:</td>
                      <td class="style1" colspan="5" width="650px">
                          <lib:Input ID="proveedortxt" runat="server" DataType="List"    
                          AutoPostBack="true"   ChkVal='<%# int.Parse((string)Request.QueryString["idObra"])%>' 
                              Method="GetProveedor" Width="400px"></lib:Input>
                      </td>
                      <td>
                          &nbsp;</td>
                      <td>
                          &nbsp;</td>
                  </tr>
                  <tr>
                      <td align="right">
                          Fecha Inicio:</td>
                      <td width="140px">
                          <lib:Input ID="inicioDateTime" runat="server" 
                               Width="85px"></lib:Input>
                          <asp:ImageButton runat="Server" ID="ImageButton3" 
                                        ImageUrl="~/Images/month.gif" 
                                        
        AlternateText="Click aqui para mostrar calendario" Width="16px" />
  <asp:CalendarExtender ID="CalendarExtender3" 
                                       runat="server"  
                                       TargetControlID="inicioDateTime"
                                       PopupButtonID="ImageButton2" 
                                        
                                       >
                        </asp:CalendarExtender>
                      </td>
                      <td width="80px" align="right">
                          Fecha Fin:
                          
                      </td>
                      <td width="140px">
                          <asp:TextBox ID="finDateTime" runat="server"
                              Width="85px"></asp:TextBox> 
                              
                              <asp:ImageButton runat="Server" ID="ImageButton4" 
                                        ImageUrl="~/Images/month.gif" 
                                        
        AlternateText="Click aqui para mostrar calendario" Width="16px" />
                    <asp:CalendarExtender ID="CalendarExtender4" runat="server" 
                                        TargetControlID="finDateTime"  
                                        PopupButtonID="ImageButton1">
                     </asp:CalendarExtender>
                      </td>
                      <td align="right" width="80px">
                          &nbsp;</td>
                      <td width="150px">
                          &nbsp;</td>
                      <td>
                      </td>
                      <td>
                          &nbsp;</td>
                  </tr>
                  <tr class="ms-crm-Form-Body" >
                      <td align="right">
                          &nbsp;</td>
                      <td width="120px">
                          &nbsp;</td>
                      <td align="right" width="80px">
                          &nbsp;</td>
                      <td width="120px">
                          &nbsp;</td>
                      <td align="right" width="80px">
                          &nbsp;</td>
                      <td align="right">
                          <asp:Button ID="refreshButton" runat="server" CssClass="ms-crm-List-Header" 
                              onclick="refreshButton_Click" Text="Actualizar" Width="90px" />
                      </td>
                      <td width="100px">
                          <asp:Button ID="nuevoButton" runat="server" CssClass="ms-crm-List-Header" 
                              OnClick="nuevoButton_Click" Text="Nuevo" Width="90px" />
                      </td>
                      <td width="100px">
                          <asp:Button ID="ExportButton" runat="server" CssClass="ms-crm-List-Header" 
                              onclick="ExportButton_Click" Text="Exportar Excel Todo" />
                      </td>
                  </tr>
 </table>
 </asp:Panel>
 </td>
      <td>
                  &nbsp;</td>
          </tr>
      </table>


  <asp:Panel ID="PanelButtom" runat="server"
  BackColor="white">


            
     <input id="idObra" type="hidden" runat="server" name="idObra" />


   
     
     <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
     <ContentTemplate>
     
    <uc2:RecepcionDocListGrid ID="RecepcionDocListGrid1" runat="server"  DataSourceID="recepcionDocListODS"     />
 
   <asp:ObjectDataSource ID="recepcionDocListODS"  runat="server"
             EnablePaging="True"
              SelectCountMethod="Count" 
              SortParameterName="sortExpression"
             SelectMethod="GetRecepcionDocList" 
             typeName="BOL.RecepcionDocBL" >
               <SelectParameters>
                <asp:querystringparameter  Name="idObra" Type="Int32" querystringfield="idObra"  />
                <asp:ControlParameter Name="numDocumento" Type="String"   ControlID="codigoTXT"   />
                <asp:ControlParameter Name="tipoDocumento" Type="Int32"   ControlID="tipoDocumentoDDL"   />
                <asp:ControlParameter Name="proveedor" Type="String" ControlID="proveedortxt"  />
                <asp:ControlParameter Name="fechaInicio" Type="DateTime" ControlID="inicioDateTime"  />
                <asp:ControlParameter Name="fechaFin" Type="DateTime" ControlID="finDateTime"  />
                <asp:Parameter Name="startRowIndex" Type="Int32" />
                <asp:Parameter Name="maximumRows" Type="Int32" />
                <asp:Parameter Name="sortExpression" Type="String" />

                </SelectParameters>
               </asp:ObjectDataSource>

                 
       

                 
       </ContentTemplate>
       <Triggers>
       <asp:AsyncPostBackTrigger ControlID="refreshButton" /> 
       <asp:AsyncPostBackTrigger ControlID="tipoDocumentoDDL" /> 
       <asp:AsyncPostBackTrigger ControlID="proveedortxt" /> 
       <asp:AsyncPostBackTrigger ControlID="codigoTXT" /> 
       
           </Triggers>
       
     </asp:UpdatePanel>
       </asp:Panel>
  
   
    </form>
    </body>
</html>
